﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InscriberControlClient
{
    class INI
    {
        public int leadasOutTimer = 2000;
        public int hotNewsInTimer = 2000;
        public int hotNewsLoopTimer = 15000;
        public int hotNewsOutTimer = 2000;
        public int leadInTimer = 2000;
        public int leadLoopTimer = 15000;

        public void readINI()
        {
            IniParser parser = new IniParser(Functionality.StartPath + "\\timers.ini");
            hotNewsInTimer = Int32.Parse(parser.GetSetting("timers", "hotNewsInTimer"));
            leadasOutTimer = Int32.Parse(parser.GetSetting("timers", "leadasOutTimer"));
            hotNewsLoopTimer = Int32.Parse(parser.GetSetting("timers", "hotNewsLoopTimer"));
            hotNewsOutTimer = Int32.Parse(parser.GetSetting("timers", "hotNewsOutTimer"));
            leadInTimer = Int32.Parse(parser.GetSetting("timers", "leadInTimer"));
            leadLoopTimer = Int32.Parse(parser.GetSetting("timers", "leadLoopTimer"));
        }
    }
}
